import { IHttpResponse, IParam } from '@/core/interface';
import { HttpResponse } from '@/core/utils';
import { ControlVOBase } from '../control-vo';
import FormService from './form-service';

/**
 * 搜索表单部件服务
 *
 * @class SearchFormService
 */
class SearchFormService<T extends ControlVOBase> extends FormService<T> {
	/**
	 * 加载草稿
	 *
	 * @param {string} action
	 * @param {IParam} [context={}]
	 * @param {IParam} [data={}]
	 * @return {*}  {Promise<IHttpResponse>}
	 * @memberof SearchFormService
	 */
	async loadDraft(
		action: string,
		context: IParam = {},
		data: IParam = {}
	): Promise<IHttpResponse> {
		const response = new HttpResponse({});
		this.handleResponse(response);
		return response;
	}
}
export default SearchFormService;
